@echo off
del build\STBoy.exe
echo ##### building #####
mingw32-g++ -Wall -g -c main.cpp   -o build\main.o
mingw32-g++ -Wall -g -c CSTBoy.cpp -o build\CSTBoy.o
mingw32-g++ -Wall -g -c CZ80.cpp   -o build\CZ80.o
mingw32-g++ -Wall -g -c CPPU.cpp   -o build\CPPU.o
mingw32-g++ -o build\stboy.exe build\main.o build\CSTBoy.o build\CZ80.o build\CPPU.o
echo ##### build finished #####
echo ##### output #####
build\STBoy.exe
echo.
echo.
echo ##### terminated #####
echo.
echo.